using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using XUCore.Ddd.Domain;
using XUCore.NetCore.DynamicWebApi;
using XUCore.NetCore.FreeSql.Curd;
using XUCore.NetCore.FreeSql.Entity;
using XUCore.Paging;

namespace XUCore.NetCore.FreeSql
{
    /// <summary>
    /// CURD API 服务（默认主键string类型）<para></para>
    /// </summary>
    /// <typeparam name="TEntity">数据库实体</typeparam>
    /// <typeparam name="TUser">IUser</typeparam>
    public abstract class StringCurdUserAppService<TEntity, TUser> :
        AbstractCurdUserAppService<string, string, TEntity, TUser>, IDynamicWebApi, IScoped
        where TEntity : EntityFull<string, string>, new()
        where TUser : class, IUser
    {
        public StringCurdUserAppService(IServiceProvider serviceProvider)
            : base(serviceProvider)
        {

        }
        public StringCurdUserAppService(IServiceProvider serviceProvider, IFreeSql freeSql)
            : base(serviceProvider, freeSql)
        {

        }
    }
}